﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/hear/";  //应用的地址名
String listActionName = basePath+"CaseSourceHear.action?op=searchjs";
String hearRegActionName = basePath+"CaseSourceHear_hearRegPage.action";
String fillRegActionName = basePath+"CaseSourceHear_fillRegPage.action";
String drawRegActionName = basePath+"CaseSourceHear_drawRegPage.action";
String llegalRegActionName = basePath+"CaseSourceHear_llegalRegPage.action";
String trackRegActionName = basePath+"CaseSourceHear_trackRegPage.action";
String judicialRegActionName = basePath+"CaseSourceHear_judicialRegPage.action";

String lookFrameActionName = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/CaseSourceReceive_lookItemFrame.action?";
String checkNoticePageActionName = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/CaseSourceReceive_checkNoticePage.action";

String excelActionName=basePath+"CaseSourceHear_saExcel.action";

%>
<script language="javascript" src="<%=path %>/js/My97/WdatePicker.js"></script>
<script language="javascript" src="<%=path %>/js/fileupload.js"></script>
<script language="javascript" src="<%=path %>/jslib/orgSelect.js"></script>
<script type="text/javascript">
    		$(function(){
    			$('#inspectDept').orgSelect({
    				inspectDeptId:'inspectDept',
    		        collectDeptId:'collectDept'
    			});	
			//表格初始化
			$('#searchTable').grid({
				title:[<ce:menu/>],
				url:'<%=listActionName%>',
				singleSelect:true,
			     queryParams : {
						"search.taxpayerNum" : "",
						"search.involvedEnt" : "",
						"search.caseNum" : "",
						"search.recBeginDate" : "",
						"search.recEndDate" : "",
						"search.caseFrom" : "",
						"search.illegalType" : "",
						"search.inspectDept" : "",
						"search.collectDept" : ""
				    }, //用于查询的参数以及初始值
				//表头列，不建议改动
				frozenColumns:[[   
	                {field:'ck',checkbox:true},
					{field:'caseNumber',title:'案源编号',sortable:true},
					{field:'enterprice',title:'涉案企业（个人）名称',width:200,sortable:true},
					{field:'stateInfo',title:'状态',width:110,sortable:true}
				]],
				//数据列，根据显示的内容进行修改
				columns:[[
						
						{field:'hearDate',title:'提交审理时间',width:80,sortable:true},
						{field:'hearPerson',title:'审理人员',width:80,sortable:true},
						{field:'isRetrial',title:'是否重审',width:60,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
							
						},
						{field:'isCollegiate',title:'是否申请市局合议',width:110,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
						},
						{field:'drawRegisterDate',title:'合议提请时间',width:80,sortable:true,
							formatter : function(value) {
								if (value!= null) {
									return value.substring(0,10);
								} 
							}	
						},
						{field:'localAddedTax',title:'国内增值税',width:80,sortable:true},
						{field:'localCostTax',title:'国内消费税',width:80,sortable:true},
						{field:'operationTax',title:'营业税',width:80,sortable:true},
						{field:'constructionTax',title:'城市建设维护税',width:80,sortable:true},
						{field:'entIncomeTax',title:'企业所得税',width:80,sortable:true},
						{field:'personalIncomeTax',title:'个人所得税',width:80,sortable:true},						
						{field:'resourceTax',title:'资源税',width:80,sortable:true},
						{field:'educationTax',title:'教育费附加',width:80,sortable:true},
						{field:'faKuanMoney',title:'罚款',width:80,sortable:true},
						{field:'illegalMoney',title:'没收违法所得',width:80,sortable:true},
						{field:'adjustFillTax',title:'调减留抵税额',width:80,sortable:true},
						{field:'noFillTax',title:'不予抵扣税款',width:80,sortable:true},
						{field:'noFillbackTax',title:'不予免、抵、退税',width:80,sortable:true},
						
						{field:'adjustIncome',title:'调整应纳税所得额',width:80,sortable:true},
						{field:'deductPaidTax',title:'抵减已缴税款',width:80,sortable:true},
						{field:'recoveredRefundedTax',title:'追缴已退税款',width:80,sortable:true},
						
						
						{field:'totalCount',title:'查处发票份数',width:80,sortable:true},
						{field:'totalMoney',title:'查处发票金额',width:80,sortable:true},
						
						{field:'isHearing',title:'是否听证',width:60,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
						},
						{field:'isReconsideration',title:'是否行政复议',width:80,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
						},
						{field:'isProcedure',title:'是否行政诉讼',width:80,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
						},
						{field:'isCompensation',title:'是否行政赔偿',width:80,sortable:true,
							formatter : function(value) {
								if (value == '0') {
									return "否";
								} else if (value == '1') {
									return "是";
								}
							}
						},
						{field:'punishmentCount',title:'近5年因偷税被,处罚次数',width:150,sortable:true},
						{field:'treatmentResultName',title:'司法处理结果',width:120,sortable:true}
						
				]],
				//功能按钮组
                toolbar:[<ce:jsonBtn/>]
			});
			//查询操作
			$('#search').click(function(){
                defaultSearchAction();
            });		
		});	
    		
   		function viewItem(id){
   			var rows = $('#searchTable').datagrid('getSelections');	
   			var num=rows[0].caseNumber;
   			parent.addTabs_(num+'案源查看','<%=lookFrameActionName%>&chkSelf='+id);
   		}
		
	   function signItems(){
		   
	   }
		function hearRegPage(){
			defaultOpenDealPageHavebtn('<%=hearRegActionName%>',650,450,null,'审理情况登记');   
	    }
		function fillRegPage(){
			defaultOpenDealPageHavebtn('<%=fillRegActionName%>',650,450,null,'查补情况');     
		}
		function illegalRegPage(){
			  
			defaultOpenDealPageHavebtn('<%=llegalRegActionName%>',600,450,null,'发票违法情况');
		}
		function drawRegPage(){
			defaultOpenDealPageHavebtn('<%=drawRegActionName%>',600,450,null,'合议提请');   
		}
		function trackRegPage(){
			defaultOpenDealPageHavebtn('<%=trackRegActionName%>',450,300,null,'后续跟踪');
		}
		function judicialPassPage (){
			defaultOpenDealPageHavebtn('<%=judicialRegActionName%>',450,300,null,'司法移送情况');
		}
		
		function addHytq(){
	    	   defaultOpenDealPageHavebtn('<%=checkNoticePageActionName%>?fileType=重大涉税案件合议提请表',550,350,null,'稽查报告');
	    }
		function addHyjy(){
	    	   defaultOpenDealPageHavebtn('<%=checkNoticePageActionName%>?fileType=重大涉税案件合议纪要',550,350,null,'稽查报告');
	    }
		
		
		function passExec(){
			   
		}
		function viewItemFlow (){
		
		}
		function saveAsExcel(){
	      	   if($('#saveExcelFrm').length==0){
	      			$('<iframe id="saveExcelFrm" name="saveExcelFrm" width=0 height=0></iframe>').appendTo(document.body);
	      		}
	      		var f = $('form:first');
	      		var fa = f.attr('action');
	      		f.attr('target','saveExcelFrm');
	      		f.attr('action','<%=excelActionName%>');
	      		f[0].submit();
	      		f.attr('target','');
	      		f.attr('action',fa);
	     }  
		//点击帮助按钮后的操作：打开帮助界面
		function openHelpPage(){
		    defaultOpenWindow('<%=path%>/sys/menu/SysMenuHelp_look.action?chkSelf=<%=request.getAttribute("menuId").toString() %>','帮助信息查看',600,600);
		}
    
    </script>
<html>
  <head>
    <title></title>
  </head> 
<body class="easyui-layout">
<form id="excelSearch">
<div class="div_height_auto" data-options="region:'north',border:false" style="overflow: hidden;" align="left">
<table>
<tr>
	<td align="right">纳税人识别号：</td><td><input type="text" name="search.taxpayerNum" id="taxpayerNum" style="width:100px;"/></td>
	<td align="right">涉案企业名称：</td><td><input type="text" name="search.involvedEnt" id="involvedEnt"  style="width:100px;"/></td>
	<td align="right">案源编号：</td><td><input type="text" name="search.caseNum" id="caseNum"  style="width:100px;"/></td>
	<td align="right">接收日期：</td>
	<td><input type="text" name="search.recBeginDate" id="recBeginDate" style="width:100px;" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>&nbsp;至&nbsp;
	    <input type="text" name="search.recEndDate" id="recEndDate"  style="width:100px;"  class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
	</td>
</tr>
<tr>
	<td align="right">案件来源：</td><td><ce:dictSelect name="search.caseFrom" id="caseFrom"  dictName="备选案源台账-案件来源" allOption="true" style="width:100px;"/></td>
	<td align="right">涉嫌违法类型：</td><td><ce:dictSelect name="search.illegalType" id="illegalType"    dictName="备选案源台账-涉嫌违法类型" allOption="true" style="width:100px;"/></td>
	<td align="right">所属稽查局：</td><td><select name="search.inspectDept" id="inspectDept"  style="width:100px;"></select></td>
	<td align="right">所属征管局：</td>
	<td colspan="2">
	<select id="collectDept"  style="width:100px;"></select>
	</td>
	<td rowspan="2">
	   <a id="search" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search">查询</a>
	   <a id="resetSearch" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-redo">重置</a>
	</td>
</tr>
</table>
    </div>
<div data-options="region:'center',border:false" style="overflow: hidden;">
  <table id="searchTable"></table>
</div>
</form>
</body>
</html>
   
   

